<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>盒子的大小包含边框和内边距</title>
		<style>
			div{
				height: 130px;
				width: 130px;
				border: 1px solid red;
				margin: 3px;
				background-color: darkcyan;
			}
			div#d3{
				border: 25px outset gold;
				padding: 10px;
				box-sizing: content-box;
			}
			div#d2{
				border: 25px outset gold;
				padding: 10px;
				box-sizing: border-box;
				overflow: hidden;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<img src="../image/book-02.jpg"/> 
		</div>
		<div id="d2">
			<img src="../image/book-02.jpg"/> 
		</div>
		<div id="d3">
			<img src="../image/book-02.jpg"/> 
		</div>
	</body>
</html>